package com.gongzhiyun.springboot3test.mapper.novel;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gongzhiyun.springboot3test.entity.novel.NovelTypes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NovelTypesMapper extends BaseMapper<NovelTypes> {

    @Select("select * from novel_types where sex='m'")
    List<NovelTypes> getM();

    @Select("select * from novel_types where sex='f'")
    List<NovelTypes> getF();



}
